package models;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@SuppressWarnings("serial")
@Cached
public class AdsDealModel implements Serializable {

	/**
	 * "special" - quảng cáo trang chủ. "top" - quảng cáo menu top. "right" -
	 * quảng cáo menu right.
	 * */
	@Id
	@Indexed
	private String type = "";

	@Indexed
	private List<String> listDealId = new ArrayList<String>();

	/**
	 * Nếu là quảng cáo trang chủ, cần có ảnh đại diện, thêm vào đây.
	 * */
	@Unindexed
	private List<String> images = new ArrayList<String>();

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<String> getListDealId() {
		return listDealId;
	}

	public void setListDealId(List<String> listDealId) {
		this.listDealId = listDealId;
	}

	public List<String> getImages() {
		return images;
	}

	public void setImages(List<String> images) {
		this.images = images;
	}

}
